Release 10.1A: OpenEdge Development:
Progress 4GL Reference
BEGIN-EVENT-GROUP( ) method
Indicates (and records) the beginning of a group of related audit events in the current session. Audit event groups are used to group a series of related application and database audit events in one or more connected audit-enabled databases whose current audit policy has this audit event enabled.
This method returns a Base64 character string that specifies the universally unique identifier (UUID) of the primary index for all audit event records generated by this method for this audit event group. This UUID is recorded in all subsequent audit event records until you either end this audit event group or begin a different audit event group. The UUID is 22 characters in length (the two trailing Base64 pad characters are removed).
Return type: CHARACTER Applies to: AUDIT-CONTROL system handle
event-contextA character expression that specifies the context for the audit event. The value of this expression cannot exceed 200 characters. You can also use this value as an alternate index for querying the audit event record.
If you specify the Unknown value (
?), Progress generates a run-time error.event-detailAn optional character expression that specifies additional audit detail. The value of this expression cannot exceed 10,000 characters.
user-detailAn optional character expression that specifies additional user detail. The value of this expression cannot exceed 10,000 characters.
The UUID is saved as the EVENT-GROUP-ID attribute value for each connected audit-enabled database.
There can be only one active event group per session at any one point in time. To set a different event group for the session, you can:
- Call the END-EVENT-GROUP( ) method, to end the current event group, and then call the BEGIN-EVENT-GROUP( ) method to begin the new event group.
- Call the BEGIN-EVENT-GROUP( ) method to begin the new event group. If there is an existing event group in effect, Progress ends the existing event group before beginning the new event group.
Calling this method generates an audit event, and creates an audit record for the event in all connected audit-enabled databases according to each database’s current audit policy settings.
ExampleThe following code fragment illustrates how to use the BEGIN-EVENT-GROUP( ) method:
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |